package com.atwei.mango.system.exception;


/**
 * @Classname ApiException
 * @Description 请求异常类
 * @Date 2022/6/7 19:02
 * @Author liuwei
 */
public class ApiException extends RuntimeException{

    private ResponseEnum code;

    public ApiException(ResponseEnum code){
        super(code.getMsg());
        this.code = code;
    }

    public ResponseEnum getCode() {
        return code;
    }

    public void setCode(ResponseEnum code) {
        this.code = code;
    }
}
